//package com.hvgroup.modules.dify.domain;
//
//
//import cn.hutool.core.bean.BeanUtil;
//import cn.hutool.core.bean.copier.CopyOptions;
//import io.swagger.annotations.ApiModelProperty;
//import lombok.Getter;
//import lombok.Setter;
//
//import javax.persistence.Column;
//import javax.persistence.Entity;
//import javax.persistence.Id;
//import javax.persistence.Table;
//import java.io.Serializable;
//import java.sql.Timestamp;
//
//@Getter
//@Setter
//@Entity
//@Table(name = "api_tokens")
//public class ApiToken implements Serializable {
//
//    @Id
//    @Column(name = "id", columnDefinition = "uuid")
//    @ApiModelProperty(value = "主键ID", hidden = true)
//    private String id;
//
//    @ApiModelProperty(value = "应用ID")
//    @Column(name = "app_id", columnDefinition = "uuid")
//    private String appId;
//
//    @ApiModelProperty(value = "令牌类型")
//    private String type;
//
//    @ApiModelProperty(value = "令牌内容")
//    private String token;
//
//    @ApiModelProperty(value = "最后使用时间")
//    @Column(name = "last_used_at")
//    private Timestamp lastUsedAt;
//
//    @ApiModelProperty(value = "创建时间")
//    @Column(name = "created_at")
//    private Timestamp createdAt;
//
//    @ApiModelProperty(value = "租户ID")
//    @Column(name = "tenant_id")
//    private String tenantId;
//
//    public void copy(ApiToken source) {
//        BeanUtil.copyProperties(source, this, CopyOptions.create().setIgnoreNullValue(true));
//    }
//}